package com.antball.dd.decorator;

public abstract class Decorator extends Component {

    private Component component;

    public Decorator(Component component){
        this.component=component;
    }

    public void request(){
        before();
        component.request();
        after();
    }

    protected abstract void before();


    protected abstract void after();
}
